import Vue from "vue";

import './plugins/plugins' //插件保存处

import App from "./App.vue";
import router from "./router/index";
import store from "./store";

import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
Vue.use(Viewer);
Viewer.setDefaults({
  Options: { "inline": true, "button": true, "navbar": true, "title": true, "toolbar": true, "tooltip": true, "movable": true, "zoomable": true, "rotatable": true, "scalable": true, "transition": true, "fullscreen": true, "keyboard": true, "url": "data-source" }
});

// 多语言
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)
import zh from './language/zh';
import fa from './language/fa';
import han from './language/han';
import ri from './language/ri';
import tai from './language/tai';
import ying from './language/ying';
const i18n = new VueI18n({
  locale: localStorage.getItem('lang') || 'zh', // 语言标识
  messages: {
    zh, fa, han, ri, tai, ying
  }
})

Vue.config.productionTip = false;
window.vm = new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount("#app");
